import express from 'express'
import attachmentController from '@/controllers/attachmentController'

const router = express.Router()

/**
 * 查询附件列表
 * GET /attachments
 */
router.get('/', attachmentController.getAttachments)

/**
 * 删除附件
 * DELETE /admin/attachments/:id
 */
router.delete('/:id', attachmentController.deleteAttachment)

export default router
